package com.example.sps.pojo.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @ProjectName: Sps
 * @Titile: UpdatePwdDTO
 * @Author: nency
 * @Description: TODO
 */
@Data
public class UpdatePwdDTO {
    @Length(max = 12,min = 6,message = "旧密码只能{min}到{max}")
    @NotBlank(message = "旧密码不能为空")
    private String oldPwd;
    @Length(max = 12,min = 6,message = "新密码只能{min}到{max}")
    @NotBlank(message = "新密码不能为空")
    private String newPwd;
    @Length(max = 12,min = 6,message = "确认密码只能{min}到{max}")
    @NotBlank(message = "确认密码不能为空")
    private String rePwd;

}
